import http from "@/utils/request";

export default {
  /**
   *查询燃料列表
   */
  async findConstraintList(params) {
    return http.get("/api/constraint/list", params);
  },

  /**
   * 查询被选择的熔剂
   */
  async listIsSelected(params) {
    return http.get("/api/constraint/listIsSelected", params);
  },

  /**
   *添加燃料
   */
  async addConstraint(params) {
    return http.post("/api/constraint/add", params);
  },

  /**
   *修改燃料
   */
  async updateConstraint(params) {
    return http.put("/api/constraint/update", params);
  },

  /**
   *删除燃料
   */
  async deleteConstraint(params) {
    return http.delete("/api/constraint/delete", params);
  },
};
